import request from '@/utils/request'

// 查询线路所有轨迹
export function listRouteLocusAll(query) {
  return request({
    url: '/basic/routeLocus/allList',
    method: 'get',
    params: query
  })
}

// 查询线路轨迹详细
export function getRouteLocus(id) {
  return request({
    url: '/basic/routeLocus/' + id,
    method: 'get'
  })
}

// 新增线路轨迹
export function addRouteLocus(data) {
  return request({
    url: '/basic/routeLocus',
    method: 'post',
    data: data
  })
}

// 修改线路轨迹
export function updateRouteLocus(data) {
  return request({
    url: '/basic/routeLocus',
    method: 'put',
    data: data
  })
}

// 删除线路轨迹
export function delRouteLocus(id) {
  return request({
    url: '/basic/routeLocus/' + id,
    method: 'delete'
  })
}
